package com.zhledu.parallel.controller;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@Slf4j
@RequestMapping("/first")
@Api(tags = "初始化模块")
public class FirstController {

    @ResponseBody
    @GetMapping("/index")
    @ApiOperation("第一条测试")
    @ApiOperationSupport(order = 2)
    public String index() {
        return "index";
    }

    @ResponseBody
    @GetMapping("/second")
    @ApiOperation("第二条测试")
    @ApiOperationSupport(order = 1)
    public String second() {
        return "second";
    }
}
